package com.tuanbiao.models.action;

import com.hzjq.lib.BlastKool;
import com.tuanbiao.data.callback.OnBaseResultCallback;

/**
 * @author abiao
 * @since 2022/5/7 9:39
 */
public interface LoginSurplusAction {
    default void getLoginSurplusTime(OnBaseResultCallback<String> callback) {
        BlastKool.Companion.setLoginSurplusTimeCallback(s -> {
            callback.onSuccess(s);
            callback.onFinish();
        });
    }

    default void removeLoginSurplusTime() {
        BlastKool.Companion.removeLoginSurplusTimeCallback();
    }
}
